<?xml version="1.0" encoding="UTF-8"?>    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:util="http://java.sun.com/jsf/composite/components/util">
<f:view locale="#{localBean.locale}">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</h:head>
<h:body>
	<h:outputScript name="jsf.js" library="javax.faces" target="body"/>
		 <ui:composition template="/WEB-INF/templates/manage/manageTemplate.xhtml">
		 	<ui:define name="manageContent">
		 		<h:form id="editGoodsForm">
		 		<h5 class="bigBlue">
					#{msgs['menu.manage.goods.display']}>#{msgs['menu.manage.create.display']}
				</h5>	
					<a4j:outputPanel id="maindatapanel">
					<h:panelGrid columns="4" border="0" cellpadding="0" cellspacing="0" styleClass="edit-goods-panelgrid" rowClasses="edit-goods-panelgrid-odd-row,edit-goods-panelgrid-even-row" columnClasses="edit-goods-panelgrid-of-first,edit-goods-panelgrid-of-second,edit-goods-panelgrid-of-first,edit-goods-panelgrid-of-second">
							<f:facet name="header">
								<h:panelGroup>
									<h:messages id="validateErrorMessages" styleClass="errormessage"></h:messages>
									<util:messages errorMessages="#{createGoodsPage.errorMessages }"/>
								</h:panelGroup>
							</f:facet>
							<h:outputLabel value="#{msgs['product.code.display']}：" styleClass="normallabel" for="code"></h:outputLabel><h:inputText id="code" value="#{createGoodsPage.goods.code}" label="#{msgs['product.code.display']}" required="true" styleClass="normal-input-text" maxlength="20"><f:validateLength minimum="6" maximum="20"/><f:ajax event="blur" listener="#{createGoodsPage.codeKeyUp}" execute="@this" render="imageName introduceFileName"></f:ajax></h:inputText>
							<h:outputLabel value="#{msgs['product.barcode.display']}：" styleClass="normallabel"></h:outputLabel><h:inputText id="barcode" value="#{createGoodsPage.goods.barcode}" styleClass="normal-input-text" maxlength="50"></h:inputText>
							
							<h:outputLabel value="#{msgs['product.provider.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="provider" value="#{createGoodsPage.goods.providerv.stakeholderId}" styleClass="defaultSelect"><f:selectItems value="#{existStakeholder.stakeholderItems}"></f:selectItems></h:selectOneMenu>
							<h:outputLabel value="#{msgs['product.manufacturerCode.display']}：" styleClass="normallabel"></h:outputLabel><h:inputText id="manufacturerCode" value="#{createGoodsPage.goods.manufacturerCode}" label="#{msgs['product.manufacturerCode.display']}" required="true" styleClass="normal-input-text"><f:validateLength minimum="6" maximum="20"/></h:inputText>
							
							<h:outputLabel value="#{msgs['product.spec.display']}：" styleClass="normallabel"></h:outputLabel><h:inputText id="spec" value="#{createGoodsPage.goods.spec}" styleClass="normal-input-text" maxlength="50"></h:inputText>
							<h:outputLabel value="#{msgs['product.stockLowerNumber.display']}：" styleClass="normallabel"></h:outputLabel><p:spinner id="stockLowerNumber" value="#{createGoodsPage.goods.stockLowerNumber}" style="border:1px solid #999999;font-size:14px;padding-top:4px;padding-bottom:4px;height:16px;*height:26px;line-height: 17px;width:80px;" min="10" max="10000" stepFactor="1"></p:spinner>
							<h:outputLabel value="#{msgs['product.currentNumber.display']}：" styleClass="normallabel"></h:outputLabel><h:inputText id="currentNumber" value="#{createGoodsPage.goods.currentNumber}" styleClass="normal-input-text"><f:validateLongRange minimum="1" maximum="100000"></f:validateLongRange></h:inputText>
							<h:outputLabel value="#{msgs['product.stockUpperNumber.display']}：" styleClass="normallabel"></h:outputLabel><p:spinner id="stockUpperNumber" value="#{createGoodsPage.goods.stockUpperNumber}" style="border:1px solid #999999;font-size:14px;padding-top:4px;padding-bottom:4px;height:16px;*height:26px;line-height: 17px;width:80px;" min="10" max="10000" stepFactor="1"></p:spinner>
							<h:outputLabel value="#{msgs['product.name.display']}：" styleClass="normallabel"></h:outputLabel><h:inputText id="name" value="#{createGoodsPage.goods.name}" styleClass="normal-input-text" maxlength="50"></h:inputText>
							<h:outputLabel value="#{msgs['product.unit.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="unit" value="#{createGoodsPage.goods.unitv.unitId}" styleClass="defaultSelect"><f:selectItems value="#{existProductUnit.unitItems}"></f:selectItems></h:selectOneMenu>
							
							<h:outputLabel value="#{msgs['product.imageName.display']}：" styleClass="normallabel"></h:outputLabel><h:inputText id="imageName" value="#{createGoodsPage.goods.imageName}" styleClass="normal-input-text" maxlength="50" readonly="true"></h:inputText>
							<h:outputLabel value="#{msgs['product.introduceFileName.display']}：" styleClass="normallabel"></h:outputLabel><h:inputText id="introduceFileName" value="#{createGoodsPage.goods.introduceFileName}" styleClass="normal-input-text" maxlength="50" readonly="true"></h:inputText>
							<h:outputLabel value="#{msgs['product.description.display']}：" styleClass="normallabel"></h:outputLabel><h:inputText id="description" value="#{createGoodsPage.goods.description}" styleClass="normal-input-text" maxlength="200"></h:inputText>
							<h:outputLabel value="#{msgs['product.primaryCategoryCode.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="primaryCategoryCode" valueChangeListener="#{createGoodsPage.changePrimaryCategoryItems}" value="#{createGoodsPage.goods.primaryCategoryCode}" styleClass="defaultSelect"><f:selectItems value="#{existCategory.categoryItems}"></f:selectItems><f:ajax event="change" execute="@this" render="maindatapanel mainSpecialPanel"></f:ajax></h:selectOneMenu>
							<h:outputLabel value="#{msgs['product.secondCategoryCode.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="secondCategoryCode" value="#{createGoodsPage.goods.secondCategoryCode}" styleClass="defaultSelect"><f:selectItems value="#{createGoodsPage.secondCategoryItems}"></f:selectItems></h:selectOneMenu>
							<h:outputLabel value="#{msgs['product.brandCode.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="brandCode" value="#{createGoodsPage.goods.brandCode}" styleClass="defaultSelect"><f:selectItems value="#{existBrand.brandItems}"></f:selectItems></h:selectOneMenu>
							<h:outputLabel value="#{msgs['product.status.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="status" value="#{createGoodsPage.goods.status}" styleClass="defaultSelect"><f:selectItems value="#{existProductStatus.statusItems}"></f:selectItems></h:selectOneMenu>
							<h:outputLabel value="#{msgs['product.purchasePrice.display']}：" styleClass="normallabel"></h:outputLabel><h:inputText id="purchasePrice" value="#{createGoodsPage.goods.purchasePrice}" styleClass="normal-input-text"><f:validateDoubleRange minimum="0.01" maximum="9999999.99"></f:validateDoubleRange></h:inputText>
							<h:outputLabel value="#{msgs['product.tradePriceOne.display']}：" styleClass="normallabel"></h:outputLabel><h:inputText id="tradePriceOne" value="#{createGoodsPage.goods.tradePriceOne}" styleClass="normal-input-text"><f:validateDoubleRange minimum="0.01" maximum="9999999.99"></f:validateDoubleRange></h:inputText>
							<h:outputLabel value="#{msgs['product.tradePriceTwo.display']}：" styleClass="normallabel"></h:outputLabel><h:inputText id="tradePriceTwo" value="#{createGoodsPage.goods.tradePriceTwo}" styleClass="normal-input-text"><f:validateDoubleRange minimum="0.01" maximum="9999999.99"></f:validateDoubleRange></h:inputText>
							<h:outputLabel value="#{msgs['product.retailPrice.display']}：" styleClass="normallabel"></h:outputLabel><h:inputText id="retailPrice" value="#{createGoodsPage.goods.retailPrice}" styleClass="normal-input-text"><f:validateDoubleRange minimum="0.01" maximum="9999999.99"></f:validateDoubleRange></h:inputText>
							<h:outputLabel value="#{msgs['product.integration.display']}：" styleClass="normallabel"></h:outputLabel><h:inputText id="integration" value="#{createGoodsPage.goods.integration}" styleClass="normal-input-text"><f:validateLongRange minimum="1" maximum="10000"></f:validateLongRange></h:inputText>
							<h:outputLabel value="#{msgs['product.integration.display']}：" styleClass="normallabel"></h:outputLabel><h:selectManyCheckbox id="showOn" value="#{createGoodsPage.goods.showOnList}"><f:selectItems value="#{existShowOn.showOnItems}"></f:selectItems></h:selectManyCheckbox>
							
							
							
						</h:panelGrid>
					</a4j:outputPanel>
					<a4j:outputPanel id="mainSpecialPanel">
					<h:panelGrid id="shoesSpecialPanel" columns="4" border="0" cellpadding="0" cellspacing="0" styleClass="edit-goods-panelgrid" rowClasses="edit-goods-panelgrid-odd-row,edit-goods-panelgrid-even-row" columnClasses="edit-goods-panelgrid-of-first,edit-goods-panelgrid-of-second,edit-goods-panelgrid-of-first,edit-goods-panelgrid-of-second" rendered="#{('shoes' eq createGoodsPage.goods.primaryCategoryCode) }">
						<h:outputLabel value="#{msgs['goods.apply.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="shoesapply" value="#{createGoodsPage.goods.sfield1}" styleClass="defaultSelect"><f:selectItem itemValue="" itemLabel="请选择"/><f:selectItems value="#{existApply.applyItems}"></f:selectItems></h:selectOneMenu>
						<h:outputLabel value="#{msgs['goods.material.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="shoesmaterial" value="#{createGoodsPage.goods.sfield2}" styleClass="defaultSelect"><f:selectItem itemValue="" itemLabel="请选择"/><f:selectItems value="#{existMaterial.materialItems}"></f:selectItems></h:selectOneMenu>
						<h:outputLabel value="#{msgs['shoes.lining.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="shoeslining" value="#{createGoodsPage.goods.sfield3}" styleClass="defaultSelect"><f:selectItem itemValue="" itemLabel="请选择"/><f:selectItems value="#{existMaterial.materialItems}"></f:selectItems></h:selectOneMenu>
						<h:outputLabel value="#{msgs['shoes.class.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="shoesclasses" value="#{createGoodsPage.goods.sfield4}" styleClass="defaultSelect"><f:selectItem itemValue="" itemLabel="请选择"/><f:selectItems value="#{existShoesClass.shoesClassItems}"></f:selectItems></h:selectOneMenu>
						<h:outputLabel value="#{msgs['goods.style.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="shoesstyle" value="#{createGoodsPage.goods.sfield5}" styleClass="defaultSelect"><f:selectItem itemValue="" itemLabel="请选择"/><f:selectItems value="#{existShoesStyle.shoesStyleItems}"></f:selectItems></h:selectOneMenu>
						<h:outputLabel value="#{msgs['shoes.basemetal.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="shoesbasemetal" value="#{createGoodsPage.goods.sfield6}" styleClass="defaultSelect"><f:selectItem itemValue="" itemLabel="请选择"/><f:selectItems value="#{existBasemetal.basemetalItems}"></f:selectItems></h:selectOneMenu>
					</h:panelGrid>
					
					<h:panelGrid id="bagsSpecialPanel" columns="4" border="0" cellpadding="0" cellspacing="0" styleClass="edit-goods-panelgrid" rowClasses="edit-goods-panelgrid-odd-row,edit-goods-panelgrid-even-row" columnClasses="edit-goods-panelgrid-of-first,edit-goods-panelgrid-of-second,edit-goods-panelgrid-of-first,edit-goods-panelgrid-of-second" rendered="#{('bags' eq createGoodsPage.goods.primaryCategoryCode) }">
						<h:outputLabel value="#{msgs['goods.apply.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="bagsapply" value="#{createGoodsPage.goods.sfield1}" styleClass="defaultSelect"><f:selectItem itemValue="" itemLabel="请选择"/><f:selectItems value="#{existApply.applyItems}"></f:selectItems><f:ajax event="change" execute="@this"></f:ajax></h:selectOneMenu>
						<h:outputLabel value="#{msgs['goods.material.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="bagsmaterial" value="#{createGoodsPage.goods.sfield2}" styleClass="defaultSelect"><f:selectItem itemValue="" itemLabel="请选择"/><f:selectItems value="#{existMaterial.materialItems}"></f:selectItems></h:selectOneMenu>
						<h:outputLabel value="#{msgs['goods.color.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="bagscolor" value="#{createGoodsPage.goods.sfield3}" styleClass="defaultSelect"><f:selectItem itemValue="" itemLabel="请选择"/><f:selectItems value="#{existColor.colorItems}"></f:selectItems></h:selectOneMenu>
					
					</h:panelGrid>
					
					<h:panelGrid id="clothingSpecialPanel" columns="4" border="0" cellpadding="0" cellspacing="0" styleClass="edit-goods-panelgrid" rowClasses="edit-goods-panelgrid-odd-row,edit-goods-panelgrid-even-row" columnClasses="edit-goods-panelgrid-of-first,edit-goods-panelgrid-of-second,edit-goods-panelgrid-of-first,edit-goods-panelgrid-of-second" rendered="#{('clothing' eq createGoodsPage.goods.primaryCategoryCode) }">
						<h:outputLabel value="#{msgs['goods.apply.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="clothingapply" value="#{createGoodsPage.goods.sfield1}" styleClass="defaultSelect"><f:selectItem itemValue="" itemLabel="请选择"/><f:selectItems value="#{existApply.applyItems}"></f:selectItems><f:ajax event="change" execute="@this"></f:ajax></h:selectOneMenu>
						<h:outputLabel value="#{msgs['goods.material.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="clothingmaterial" value="#{createGoodsPage.goods.sfield2}" styleClass="defaultSelect"><f:selectItem itemValue="" itemLabel="请选择"/><f:selectItems value="#{existMaterial.materialItems}"></f:selectItems></h:selectOneMenu>
						<h:outputLabel value="#{msgs['clothing.pattern.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="clothingpattern" value="#{createGoodsPage.goods.sfield3}" styleClass="defaultSelect"><f:selectItem itemValue="" itemLabel="请选择"/><f:selectItems value="#{existPattern.patternItems}"></f:selectItems></h:selectOneMenu>
						<h:outputLabel value="#{msgs['clothing.collar.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="clothingcollar" value="#{createGoodsPage.goods.sfield4}" styleClass="defaultSelect"><f:selectItem itemValue="" itemLabel="请选择"/><f:selectItems value="#{existCollar.collarItems}"></f:selectItems></h:selectOneMenu>
						<h:outputLabel value="#{msgs['goods.style.display']}：" styleClass="normallabel"></h:outputLabel><h:selectOneMenu id="clothingstyle" value="#{createGoodsPage.goods.sfield5}" styleClass="defaultSelect"><f:selectItem itemValue="" itemLabel="请选择"/><f:selectItems value="#{existClothingStyle.clothingStyleItems}"></f:selectItems></h:selectOneMenu>
					</h:panelGrid>
					
					
					<h:panelGrid id="goods3PropertiesPanel" columns="1" styleClass="edit-goods-panelgrid" style="#{(('shoes' eq createGoodsPage.goods.primaryCategoryCode) or ('clothing' eq createGoodsPage.goods.primaryCategoryCode))?'':'display:none' }">
						<h:outputLabel value=""></h:outputLabel>
						<h:panelGroup>
							<rich:dataTable id="table" value="#{createGoodsPage.goods.propertiesv}" var="goodsProperty" rowKeyVar="rowKey" border="0" style="padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;vertical-align:top;width:100%" columnClasses="goodsProperties-columns-of-normal"
							cellpadding="0" cellspacing="0" >
	            				<rich:column id="columntwo" style="word-break:break-all;" sortable="false">
	                			<f:facet name="header">
	                    			<li><h:outputText value="#{msgs['goods.color.display']}"></h:outputText></li>
	                			</f:facet>
	                			<util:colorLabel color="#{goodsProperty.color}"></util:colorLabel>
	            				</rich:column>
	            				<rich:column style="word-break:break-all;" sortable="false">
	                			<f:facet name="header">
	                    			<li><h:outputText  value="#{msgs['goods.size.display']}"/></li>
	                			</f:facet>
	                				<h:outputText value="#{goodsProperty.size}"></h:outputText>
	            				</rich:column>
	            				<rich:column style="word-break:break-all;" sortable="false">
	                			<f:facet name="header">
	                    			<li><h:outputText  value="#{msgs['goods.number.display']}"/></li>
	                			</f:facet>
	                				<h:outputText value="#{goodsProperty.number}"></h:outputText>
	            				</rich:column>
	            				<rich:column style="word-break:break-all;" sortable="false">
	                			<f:facet name="header">
	                    			<li><h:outputText  value="#{msgs['goods.image1.display']}"/></li>
	                			</f:facet>
	                				<h:outputText value="#{goodsProperty.sfield1}"></h:outputText>
	            				</rich:column>
	            				<rich:column style="word-break:break-all;" sortable="false">
	            				<f:facet name="header">
	                    			<li><h:outputText  value="#{msgs['goods.image2.display']}"/></li>
	                			</f:facet>
	                				<h:outputText value="#{goodsProperty.sfield2}"></h:outputText>
	            				</rich:column>
	            				<rich:column style="word-break:break-all;" sortable="false">
	            				<f:facet name="header">
	                    			<li><h:outputText  value="#{msgs['goods.image3.display']}"/></li>
	                			</f:facet>
	                				<h:outputText value="#{goodsProperty.sfield3}"></h:outputText>
	            				</rich:column>
	            				<rich:column style="word-break:break-all;" sortable="false">
	            				<f:facet name="header">
	                    			<li><h:outputText  value="#{msgs['goods.image4.display']}"/></li>
	                			</f:facet>
	                				<h:outputText value="#{goodsProperty.sfield4}"></h:outputText>
	            				</rich:column>
	            				<rich:column style="word-break:break-all;" sortable="false">
	            				<f:facet name="header">
	                    			<li><h:outputText  value="#{msgs['goods.image5.display']}"/></li>
	                			</f:facet>
	                				<h:outputText value="#{goodsProperty.sfield5}"></h:outputText>
	            				</rich:column>
	            				<rich:column style="word-break:break-all;" sortable="false">
	            				<f:facet name="header">
	                    			<li><h:outputText  value="#{msgs['goods.image6.display']}"/></li>
	                			</f:facet>
	                				<h:outputText value="#{goodsProperty.sfield6}"></h:outputText>
	            				</rich:column>
	            				<rich:column style="word-break:break-all;" sortable="false">
	            				<f:facet name="header">
	                    			<li><h:outputText  value="#{msgs['goods.image7.display']}"/></li>
	                			</f:facet>
	                				<h:outputText value="#{goodsProperty.sfield7}"></h:outputText>
	            				</rich:column>
	            				<rich:column style="word-break:break-all;" sortable="false">
	            				<f:facet name="header">
	                    			<li><h:outputText  value="#{msgs['goods.image8.display']}"/></li>
	                			</f:facet>
	                				<h:outputText value="#{goodsProperty.sfield8}"></h:outputText>
	            				</rich:column>
	            				<rich:column style="word-break:break-all;" sortable="false">
	            				<f:facet name="header">
	                    			<li><h:outputText  value="#{msgs['goods.image9.display']}"/></li>
	                			</f:facet>
	                				<h:outputText value="#{goodsProperty.sfield9}"></h:outputText>
	            				</rich:column>
	            				<rich:column style="word-break:break-all;" sortable="false">
	            				<f:facet name="header">
	                    			<li><h:outputText  value="#{msgs['goods.image10.display']}"/></li>
	                			</f:facet>
	                				<h:outputText value="#{goodsProperty.sfield10}"></h:outputText>
	            				</rich:column>
	            				<rich:column>
	            					<f:facet name="header">
	            						<li><h:outputText value="#{msgs['operate.display']}"></h:outputText></li>
	            					</f:facet>
	            					<h:panelGroup>
	            						<a4j:commandLink value="#{msgs['operate.edit.display']}" action="#{createGoodsPage.preUpdateGoodsProperties}" event="click" execute="@this" render="goodsPropertiesHeader propertiespg" oncomplete="#{rich:component('goodsPropertiesPanel')}.show();return false;"><f:param name="selectedRow" value="#{rowKey }"></f:param></a4j:commandLink>
		            					<a4j:commandLink value="#{msgs['operate.delete.display']}" action="#{createGoodsPage.deleteGoodsProperties}" event="click" onclick="{if (!confirm('#{msgs['confirm.delete.require.display']}?')) return false;}" render="table" execute="@this" ><a4j:param name="paramColor" value="#{goodsProperty.color}"></a4j:param><a4j:param name="paramSize" value="#{goodsProperty.size}"></a4j:param><a4j:jsFunction name="refreshTableFunction" oncomplete="alert('finished')"></a4j:jsFunction></a4j:commandLink>
	            					</h:panelGroup>
	            				</rich:column>
							</rich:dataTable><br/>
							
						 	<a4j:commandLink id="preAddPropertiesLink" value="#{msgs['add.goods.properties.display']}" action="#{createGoodsPage.preNewGoodsProperties}" event="click" execute="@this" render="goodsPropertiesHeader propertiespg" oncomplete="#{rich:component('goodsPropertiesPanel')}.show();return false;" >
						</a4j:commandLink>	
						
							
						</h:panelGroup>
					</h:panelGrid>
					
					</a4j:outputPanel>
					<h:outputLabel value="#{createGoodsPage.displayMessage}"></h:outputLabel>
					<h:commandLink action="#{createGoodsPage.saveGoods}"   styleClass="defaultbutton"><f:verbatim>#{msgs['button.save.display'] }</f:verbatim></h:commandLink>
				</h:form>
				
					
					
		 	</ui:define>
		 	<ui:define name="popuppanel">
		 		
		 			<rich:popupPanel id="goodsPropertiesPanel" onmaskclick="#{rich:component('goodsPropertiesPanel')}.hide()" modal="true" position="center"  resizable="false" autosized="false" height="460">
				    	<f:facet name="header">
				    		<a4j:outputPanel id="goodsPropertiesHeader">
				    			<h:outputText value="#{msgs['goods.properties.display']}"></h:outputText>(<h:outputLabel value="#{msgs['action.new.display']}" rendered="#{createGoodsPropertiesPage.actionOfProperties eq 'new'}"></h:outputLabel><h:outputLabel value="#{msgs['action.edit.display']}" rendered="#{createGoodsPropertiesPage.actionOfProperties eq 'edit'}"></h:outputLabel>)
				    		</a4j:outputPanel>
				    	</f:facet>
				   		<f:facet name="controls">
								<h:outputLink value="#"
									onclick="#{rich:component('goodsPropertiesPanel')}.hide(); return false;">
										X
									</h:outputLink>
							</f:facet>
						<h:form>
				   		<h:panelGrid id="propertiespg" columns="2" border="0" cellpadding="0" cellspacing="0" styleClass="edit-goods-panelgrid" rowClasses="edit-goods-panelgrid-odd-row,edit-goods-panelgrid-even-row" columnClasses="edit-goods-panelgrid-of-first,edit-goods-panelgrid-of-second">
				   			<f:facet name="header">
				   				<a4j:outputPanel id="propertiesErrorPanel">
				   				<util:messages errorMessages="#{createGoodsPropertiesPage.errorMessages}"></util:messages>
				   				</a4j:outputPanel>
				   			</f:facet>
				   			<h:outputLabel value="#{msgs['goods.color.display']}" styleClass="normallabel"></h:outputLabel><h:panelGroup><f:ajax event="valueChange" execute="@this" render="propertiesErrorPanel"><h:selectOneMenu id="colorSelectOneMenu" value="#{createGoodsPropertiesPage.goodsPropertiesVo.color}" valueChangeListener="#{createGoodsPropertiesPage.changeColor }" styleClass="defaultSelect"><f:selectItem itemValue="" itemLabel="请选择"/><f:selectItems value="#{existColor.colorItems}"></f:selectItems></h:selectOneMenu></f:ajax></h:panelGroup>
				   			<h:outputLabel value="#{msgs['goods.size.display']}" styleClass="normallabel"></h:outputLabel><h:panelGroup><f:ajax event="valueChange" execute="@this" render="propertiesErrorPanel"><h:selectOneMenu id="sizeSelectOneMenu" value="#{createGoodsPropertiesPage.goodsPropertiesVo.size}" valueChangeListener="#{createGoodsPropertiesPage.changeSize }" styleClass="defaultSelect"><f:selectItem itemValue="" itemLabel="请选择"/><f:selectItems value="#{existSize.sizeItems}"></f:selectItems></h:selectOneMenu></f:ajax></h:panelGroup>
				   			<h:outputLabel value="#{msgs['goods.number.display']}" styleClass="normallabel"></h:outputLabel><h:panelGroup><f:ajax event="change" execute="@this" render="propertiesErrorPanel"><rich:inputNumberSpinner id="goodsNumber" value="#{createGoodsPropertiesPage.goodsPropertiesVo.number}" valueChangeListener="#{createGoodsPropertiesPage.changeNumber }" step="1" minValue="1" maxValue="1000" defaultValue="0" enableManualInput="true"><f:validateLongRange maximum="1000" minimum="1"></f:validateLongRange></rich:inputNumberSpinner></f:ajax></h:panelGroup>
				   			<h:outputLabel value="#{msgs['goods.image1.display']}" styleClass="normallabel"></h:outputLabel><h:inputText value="#{createGoodsPropertiesPage.goodsPropertiesVo.sfield1}" styleClass="normal-input-text"><f:ajax event="blur" execute="@this" render="propertiesErrorPanel"></f:ajax></h:inputText>
				   			<h:outputLabel value="#{msgs['goods.image2.display']}" styleClass="normallabel"></h:outputLabel><h:inputText value="#{createGoodsPropertiesPage.goodsPropertiesVo.sfield2}" styleClass="normal-input-text"><f:ajax event="blur" execute="@this" render="propertiesErrorPanel"></f:ajax></h:inputText>
				   			<h:outputLabel value="#{msgs['goods.image3.display']}" styleClass="normallabel"></h:outputLabel><h:inputText value="#{createGoodsPropertiesPage.goodsPropertiesVo.sfield3}" styleClass="normal-input-text"><f:ajax event="blur" execute="@this" render="propertiesErrorPanel"></f:ajax></h:inputText>
				   			<h:outputLabel value="#{msgs['goods.image4.display']}" styleClass="normallabel"></h:outputLabel><h:inputText value="#{createGoodsPropertiesPage.goodsPropertiesVo.sfield4}" styleClass="normal-input-text"><f:ajax event="blur" execute="@this" render="propertiesErrorPanel"></f:ajax></h:inputText>
				   			<h:outputLabel value="#{msgs['goods.image5.display']}" styleClass="normallabel"></h:outputLabel><h:inputText value="#{createGoodsPropertiesPage.goodsPropertiesVo.sfield5}" styleClass="normal-input-text"><f:ajax event="blur" execute="@this" render="propertiesErrorPanel"></f:ajax></h:inputText>
				   			<h:outputLabel value="#{msgs['goods.image6.display']}" styleClass="normallabel"></h:outputLabel><h:inputText value="#{createGoodsPropertiesPage.goodsPropertiesVo.sfield6}" styleClass="normal-input-text"><f:ajax event="blur" execute="@this" render="propertiesErrorPanel"></f:ajax></h:inputText>
				   			<h:outputLabel value="#{msgs['goods.image7.display']}" styleClass="normallabel"></h:outputLabel><h:inputText value="#{createGoodsPropertiesPage.goodsPropertiesVo.sfield7}" styleClass="normal-input-text"><f:ajax event="blur" execute="@this" render="propertiesErrorPanel"></f:ajax></h:inputText>
				   			<h:outputLabel value="#{msgs['goods.image8.display']}" styleClass="normallabel"></h:outputLabel><h:inputText value="#{createGoodsPropertiesPage.goodsPropertiesVo.sfield8}" styleClass="normal-input-text"><f:ajax event="blur" execute="@this" render="propertiesErrorPanel"></f:ajax></h:inputText>
				   			<h:outputLabel value="#{msgs['goods.image9.display']}" styleClass="normallabel"></h:outputLabel><h:inputText value="#{createGoodsPropertiesPage.goodsPropertiesVo.sfield9}" styleClass="normal-input-text"><f:ajax event="blur" execute="@this" render="propertiesErrorPanel"></f:ajax></h:inputText>
				   			<h:outputLabel value="#{msgs['goods.image10.display']}" styleClass="normallabel"></h:outputLabel><h:inputText value="#{createGoodsPropertiesPage.goodsPropertiesVo.sfield10}" styleClass="normal-input-text"><f:ajax event="blur" execute="@this" render="propertiesErrorPanel"></f:ajax></h:inputText>
				   			
				   			<f:facet name="footer">
					   			<a4j:commandLink value="#{msgs['button.save.display']}" action="#{createGoodsPropertiesPage.saveGoodsPorperties}" event="click" execute="@this" render="table propertiespg"></a4j:commandLink>
					   			<a4j:commandLink value="#{msgs['button.close.display']}" action="#{createGoodsPropertiesPage.closeGoodsPorpertiesPanel }" event="click" execute="@this"  oncomplete="#{rich:component('goodsPropertiesPanel')}.hide();return false"></a4j:commandLink>
					   		</f:facet>
				   		</h:panelGrid>
				   		</h:form>
   	 				</rich:popupPanel>
				
		 	</ui:define>
		 </ui:composition>
</h:body>
</f:view>
</html>
